﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame1
{
    public class ChessCamera
    {
        private int m_tileSize;
        private int m_originlResolution = 640;
        private int m_resolution;

        public ChessCamera(int tileSize = 64, int resolution = 640) 
        {
            m_tileSize = tileSize;
            m_resolution = resolution;
            //GetRotatedCoords(0);
        }

        public int GetVisualCoords(int logicalCoords)
        {
            return logicalCoords * m_tileSize + m_tileSize;
        }

        public int  GetRotatedCoords(int logicalCoords)
        {
            return (8 - logicalCoords) * m_tileSize;
        }

        public int GetScaledVisualCoords(int visualCoords)
        {
            return visualCoords/(m_originlResolution / m_resolution);
        }
    }
}
